Optimal. Leaf size=39 \[ \frac{x \left (a+b \log \left (c x^n\right )\right )}{d (d+e x)}-\frac{b n \log (d+e x)}{d e} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0187661, antiderivative size = 39, normalized size of antiderivative = 1., number of steps used = 2, number of rules used = 2, integrand size = 18, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.111, Rules used = {2314, 31} \[ \frac{x \left (a+b \log \left (c x^n\right )\right )}{d (d+e x)}-\frac{b n \log (d+e x)}{d e} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2314
Rule 31
Rubi steps
\begin{align*} \int \frac{a+b \log \left (c x^n\right )}{(d+e x)^2} \, dx &=\frac{x \left (a+b \log \left (c x^n\right )\right )}{d (d+e x)}-\frac{(b n) \int \frac{1}{d+e x} \, dx}{d}\\ &=\frac{x \left (a+b \log \left (c x^n\right )\right )}{d (d+e x)}-\frac{b n \log (d+e x)}{d e}\\ \end{align*}
Mathematica [A] time = 0.0287581, size = 41, normalized size = 1.05 \[ \frac{\frac{b n (\log (x)-\log (d+e x))}{d}-\frac{a+b \log \left (c x^n\right )}{d+e x}}{e} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.1, size = 173, normalized size = 4.4 \begin{align*} -{\frac{b\ln \left ({x}^{n} \right ) }{ \left ( ex+d \right ) e}}-{\frac{i\pi \,bd{\it csgn} \left ( i{x}^{n} \right ) \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}-i\pi \,bd{\it csgn} \left ( i{x}^{n} \right ){\it csgn} \left ( ic{x}^{n} \right ){\it csgn} \left ( ic \right ) -i\pi \,bd \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{3}+i\pi \,bd \left ({\it csgn} \left ( ic{x}^{n} \right ) \right ) ^{2}{\it csgn} \left ( ic \right ) -2\,\ln \left ( -x \right ) benx+2\,\ln \left ( ex+d \right ) benx-2\,\ln \left ( -x \right ) bdn+2\,\ln \left ( ex+d \right ) bdn+2\,\ln \left ( c \right ) bd+2\,ad}{ \left ( 2\,ex+2\,d \right ) ed}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.14125, size = 85, normalized size = 2.18 \begin{align*} -b n{\left (\frac{\log \left (e x + d\right )}{d e} - \frac{\log \left (x\right )}{d e}\right )} - \frac{b \log \left (c x^{n}\right )}{e^{2} x + d e} - \frac{a}{e^{2} x + d e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 1.04868, size = 119, normalized size = 3.05 \begin{align*} \frac{b e n x \log \left (x\right ) - b d \log \left (c\right ) - a d -{\left (b e n x + b d n\right )} \log \left (e x + d\right )}{d e^{2} x + d^{2} e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A] time = 4.00992, size = 189, normalized size = 4.85 \begin{align*} \begin{cases} \tilde{\infty } \left (- \frac{a}{x} - \frac{b n \log{\left (x \right )}}{x} - \frac{b n}{x} - \frac{b \log{\left (c \right )}}{x}\right ) & \text{for}\: d = 0 \wedge e = 0 \\\frac{- \frac{a}{x} - \frac{b n \log{\left (x \right )}}{x} - \frac{b n}{x} - \frac{b \log{\left (c \right )}}{x}}{e^{2}} & \text{for}\: d = 0 \\\frac{a x + b n x \log{\left (x \right )} - b n x + b x \log{\left (c \right )}}{d^{2}} & \text{for}\: e = 0 \\\frac{a e x}{d^{2} e + d e^{2} x} - \frac{b d n \log{\left (\frac{d}{e} + x \right )}}{d^{2} e + d e^{2} x} + \frac{b e n x \log{\left (x \right )}}{d^{2} e + d e^{2} x} - \frac{b e n x \log{\left (\frac{d}{e} + x \right )}}{d^{2} e + d e^{2} x} + \frac{b e x \log{\left (c \right )}}{d^{2} e + d e^{2} x} & \text{otherwise} \end{cases} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.29645, size = 78, normalized size = 2. \begin{align*} -\frac{b n x e \log \left (x e + d\right ) - b n x e \log \left (x\right ) + b d n \log \left (x e + d\right ) + b d \log \left (c\right ) + a d}{d x e^{2} + d^{2} e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]